﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="KPIS.GERP.SERVICE.CommandDaemon.CommandDaemonConsole" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="KPIS.GERP.SERVICE.CommandDaemon.Workflow1_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:kgsm="clr-namespace:KPIS.GERP.SERVICE.Model;assembly=KPIS.GERP.SERVICE.Model"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://tempuri.org/"
 xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:ssx="clr-namespace:System.ServiceModel.XamlIntegration;assembly=System.ServiceModel"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>System.ServiceModel.Activities</x:String>
      <x:String>KPIS.GERP.SERVICE.Model</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>KPIS.GERP.SERVICE.Model</AssemblyReference>
      <AssemblyReference>KPIS.GERP.SERVICE.WorkflowService</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>KPIS.GERP.SERVICE.CommandDaemon</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_11">
    <Sequence.Variables>
      <Variable x:TypeArguments="s:Nullable(x:Int32)" Name="in_EveryMinutes" />
      <Variable x:TypeArguments="x:Boolean" Name="in_WillStop" />
      <Variable x:TypeArguments="s:Guid" Name="inout_UniqueId" />
      <Variable x:TypeArguments="p1:CorrelationHandle" Name="myCorrelation" />
      <Variable x:TypeArguments="scg:List(kgsm:command_daemon)" Name="m_listCommands">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="scg:List(kgsm:command_daemon)">new List&lt;command_daemon&gt;()</mca:CSharpValue>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="x:Boolean" Name="in_WillPause" />
      <Variable x:TypeArguments="s:Nullable(x:Int32)" Name="in_EveryOclock" />
      <Variable x:TypeArguments="x:Boolean" Name="m_BoolTimeSlip" />
      <Variable x:TypeArguments="scg:List(x:String)" Name="m_ListHistory" />
      <Variable x:TypeArguments="s:DateTime" Name="m_NextExecute" />
      <Variable x:TypeArguments="x:TimeSpan" Name="m_NextExecuteIn" />
      <Variable x:TypeArguments="x:Int32" Name="in_EmpSeqBot" />
      <Variable x:TypeArguments="p1:CorrelationHandle" Name="handle" />
      <Variable x:TypeArguments="x:Int32" Name="m_Interval" />
    </Sequence.Variables>
    <Sequence>
      <Sequence.Variables>
        <Variable x:TypeArguments="p1:CorrelationHandle" x:Name="__ReferenceID0" Name="__handle1" />
      </Sequence.Variables>
      <p1:Receive x:Name="__ReferenceID1" OperationName="Operation1" ServiceContractName="p:IService">
        <p1:Receive.CorrelationInitializers>
          <p1:RequestReplyCorrelationInitializer>
            <p1:RequestReplyCorrelationInitializer.CorrelationHandle>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <VariableValue x:TypeArguments="p1:CorrelationHandle" Variable="{x:Reference __ReferenceID0}" />
              </InArgument>
            </p1:RequestReplyCorrelationInitializer.CorrelationHandle>
          </p1:RequestReplyCorrelationInitializer>
        </p1:Receive.CorrelationInitializers>
        <sap2010:WorkflowViewState.IdRef>Receive_8</sap2010:WorkflowViewState.IdRef>
      </p1:Receive>
      <p1:SendReply Request="{x:Reference __ReferenceID1}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_8" />
      <sap2010:WorkflowViewState.IdRef>Sequence_12</sap2010:WorkflowViewState.IdRef>
    </Sequence>
    <Assign sap2010:WorkflowViewState.IdRef="Assign_13">
      <Assign.To>
        <OutArgument x:TypeArguments="s:Nullable(x:Int32)">
          <mca:CSharpReference x:TypeArguments="s:Nullable(x:Int32)">in_EveryMinutes</mca:CSharpReference>
        </OutArgument>
      </Assign.To>
      <Assign.Value>
        <InArgument x:TypeArguments="s:Nullable(x:Int32)">
          <mca:CSharpValue x:TypeArguments="s:Nullable(x:Int32)">in_EveryMinutes == null &amp;&amp; in_EveryOclock == null ? 60 : in_EveryMinutes</mca:CSharpValue>
        </InArgument>
      </Assign.Value>
    </Assign>
    <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_2">
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">"Started on " + DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")</mca:CSharpValue>
      </InArgument>
    </WriteLine>
    <Sequence sap2010:WorkflowViewState.IdRef="Sequence_2">
      <If sap2010:WorkflowViewState.IdRef="If_2">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">in_EveryMinutes.HasValue</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_1">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Int32">
                <mca:CSharpReference x:TypeArguments="x:Int32">m_Interval</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Int32">
                <mca:CSharpValue x:TypeArguments="x:Int32">Convert.ToInt32(in_EveryMinutes)</mca:CSharpValue>
              </InArgument>
            </Assign.Value>
          </Assign>
        </If.Then>
        <If.Else>
          <If sap2010:WorkflowViewState.IdRef="If_1">
            <If.Condition>
              <InArgument x:TypeArguments="x:Boolean">
                <mca:CSharpValue x:TypeArguments="x:Boolean">in_EveryOclock.HasValue</mca:CSharpValue>
              </InArgument>
            </If.Condition>
            <If.Then>
              <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
                <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
                  <Assign.To>
                    <OutArgument x:TypeArguments="x:Int32">
                      <mca:CSharpReference x:TypeArguments="x:Int32">m_Interval</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="x:Int32">
                      <mca:CSharpValue x:TypeArguments="x:Int32">Convert.ToInt32(DateTime.Now.AddDays(1).Date.Subtract(DateTime.Now.Date.AddHours(in_EveryOclock.Value)).TotalMinutes)</mca:CSharpValue>
                    </InArgument>
                  </Assign.Value>
                </Assign>
                <Assign sap2010:WorkflowViewState.IdRef="Assign_3">
                  <Assign.To>
                    <OutArgument x:TypeArguments="x:Boolean">
                      <mca:CSharpReference x:TypeArguments="x:Boolean">m_BoolTimeSlip</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                  </Assign.Value>
                </Assign>
              </Sequence>
            </If.Then>
            <If.Else>
              <Assign sap2010:WorkflowViewState.IdRef="Assign_4">
                <Assign.To>
                  <OutArgument x:TypeArguments="x:Int32">
                    <mca:CSharpReference x:TypeArguments="x:Int32">m_Interval</mca:CSharpReference>
                  </OutArgument>
                </Assign.To>
                <Assign.Value>
                  <InArgument x:TypeArguments="x:Int32">3600</InArgument>
                </Assign.Value>
              </Assign>
            </If.Else>
          </If>
        </If.Else>
      </If>
      <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1">
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">"Bot interval is " + in_EveryMinutes + " minutes"</mca:CSharpValue>
        </InArgument>
      </WriteLine>
    </Sequence>
    <Parallel sap2010:WorkflowViewState.IdRef="Parallel_1">
      <While sap2010:WorkflowViewState.IdRef="While_1">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence sap2010:WorkflowViewState.IdRef="Sequence_4">
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_7" Text="Test" />
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_3">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">"New round " + DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_4">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">"Items count is " + m_listCommands.Count</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <If sap2010:WorkflowViewState.IdRef="If_3">
            <If.Condition>
              <InArgument x:TypeArguments="x:Boolean">
                <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillPause</mca:CSharpValue>
              </InArgument>
            </If.Condition>
            <If.Then>
              <ForEach x:TypeArguments="kgsm:command_daemon" DisplayName="ForEach&lt;command_daemon&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_1">
                <ForEach.Values>
                  <InArgument x:TypeArguments="scg:IEnumerable(kgsm:command_daemon)">
                    <mca:CSharpValue x:TypeArguments="scg:IEnumerable(kgsm:command_daemon)">m_listCommands</mca:CSharpValue>
                  </InArgument>
                </ForEach.Values>
                <ActivityAction x:TypeArguments="kgsm:command_daemon">
                  <ActivityAction.Argument>
                    <DelegateInArgument x:TypeArguments="kgsm:command_daemon" Name="item" />
                  </ActivityAction.Argument>
                  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_3">
                    <Sequence.Variables>
                      <Variable x:TypeArguments="x:Int32" Name="in_Mock" />
                      <Variable x:TypeArguments="scg:List(kgsm:command_daemon)" Name="m_listCommandsSuccess" />
                    </Sequence.Variables>
                    <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_5">
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"Item Seq " + item.Command.cmd_seq</mca:CSharpValue>
                      </InArgument>
                    </WriteLine>
                    <Assign sap2010:WorkflowViewState.IdRef="Assign_5">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:Int32">
                          <mca:CSharpReference x:TypeArguments="x:Int32">in_Mock</mca:CSharpReference>
                        </OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:Int32">
                          <mca:CSharpValue x:TypeArguments="x:Int32">1; m_listCommandsSuccess.Add(item);</mca:CSharpValue>
                        </InArgument>
                      </Assign.Value>
                    </Assign>
                    <Assign sap2010:WorkflowViewState.IdRef="Assign_6">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:Int32">
                          <mca:CSharpReference x:TypeArguments="x:Int32">in_Mock</mca:CSharpReference>
                        </OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:Int32">
                          <mca:CSharpValue x:TypeArguments="x:Int32">KPIS.GERP.SERVICE.WorkflowService.Class.CommandDaemonUtils.RemoveCommands(m_listCommandsSuccess);</mca:CSharpValue>
                        </InArgument>
                      </Assign.Value>
                    </Assign>
                    <Assign sap2010:WorkflowViewState.IdRef="Assign_7">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:Int32">
                          <mca:CSharpReference x:TypeArguments="x:Int32">in_Mock</mca:CSharpReference>
                        </OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:Int32">
                          <mca:CSharpValue x:TypeArguments="x:Int32">1; m_ListHistory.Add("Executed at " + DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss"))</mca:CSharpValue>
                        </InArgument>
                      </Assign.Value>
                    </Assign>
                  </Sequence>
                </ActivityAction>
              </ForEach>
            </If.Then>
          </If>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_8">
            <Assign.To>
              <OutArgument x:TypeArguments="x:TimeSpan">
                <mca:CSharpReference x:TypeArguments="x:TimeSpan">m_NextExecuteIn</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:TimeSpan">
                <mca:CSharpValue x:TypeArguments="x:TimeSpan">new TimeSpan(0, m_Interval, 0); if (m_BoolTimeSlip) { m_BoolTimeSlip = false; m_Interval = 60 * 24; }</mca:CSharpValue>
              </InArgument>
            </Assign.Value>
          </Assign>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_9">
            <Assign.To>
              <OutArgument x:TypeArguments="s:DateTime">
                <mca:CSharpReference x:TypeArguments="s:DateTime">m_NextExecute</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="s:DateTime">
                <mca:CSharpValue x:TypeArguments="s:DateTime">DateTime.Now.Add(m_NextExecuteIn)</mca:CSharpValue>
              </InArgument>
            </Assign.Value>
          </Assign>
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_6">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">"Next execution on " + m_NextExecute.ToString("dd/MM/yyyy hh:mm:ss")</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <Delay sap2010:WorkflowViewState.IdRef="Delay_1">
            <InArgument x:TypeArguments="x:TimeSpan">
              <mca:CSharpValue x:TypeArguments="x:TimeSpan">m_NextExecuteIn</mca:CSharpValue>
            </InArgument>
          </Delay>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_2">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_5">
          <Sequence.Variables>
            <Variable x:TypeArguments="kgsm:command_daemon" Name="in_NewCommandDaemon" />
          </Sequence.Variables>
          <p1:Receive x:Name="__ReferenceID2" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_2" OperationName="AddNew" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
              <OutArgument x:TypeArguments="kgsm:command_daemon" x:Key="CommandDaemon">
                <mca:CSharpReference x:TypeArguments="kgsm:command_daemon">in_NewCommandDaemon</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <p1:SendReply Request="{x:Reference __ReferenceID2}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_2">
            <p1:SendParametersContent />
          </p1:SendReply>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_3">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_6">
          <p1:Receive x:Name="__ReferenceID3" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_3" OperationName="Stop" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_10">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">in_WillStop</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
            </Assign.Value>
          </Assign>
          <p1:SendReply Request="{x:Reference __ReferenceID3}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_3">
            <p1:SendParametersContent>
              <InArgument x:TypeArguments="x:String" x:Key="StopMessage">Process command auto has been stoped</InArgument>
            </p1:SendParametersContent>
          </p1:SendReply>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_4">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_7">
          <p1:Receive x:Name="__ReferenceID4" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_4" OperationName="Pause" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_11">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">in_WillPause</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
            </Assign.Value>
          </Assign>
          <p1:SendReply Request="{x:Reference __ReferenceID4}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_4">
            <p1:SendParametersContent>
              <InArgument x:TypeArguments="x:String" x:Key="StopMessage">Process command auto is pausing</InArgument>
            </p1:SendParametersContent>
          </p1:SendReply>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_5">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_8">
          <p1:Receive x:Name="__ReferenceID5" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_5" OperationName="Add" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_12">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">in_WillStop</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
            </Assign.Value>
          </Assign>
          <p1:SendReply Request="{x:Reference __ReferenceID5}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_5">
            <p1:SendParametersContent>
              <InArgument x:TypeArguments="x:String" x:Key="StopMessage">Process command auto has been stoped</InArgument>
            </p1:SendParametersContent>
          </p1:SendReply>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_6">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_9">
          <p1:Receive x:Name="__ReferenceID6" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_6" OperationName="History" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <p1:SendReply Request="{x:Reference __ReferenceID6}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_6">
            <p1:SendParametersContent>
              <InArgument x:TypeArguments="x:String" x:Key="History">
                <mca:CSharpValue x:TypeArguments="x:String">String.Join("\r\n", m_ListHistory)</mca:CSharpValue>
              </InArgument>
            </p1:SendParametersContent>
          </p1:SendReply>
        </Sequence>
      </While>
      <While sap2010:WorkflowViewState.IdRef="While_7">
        <While.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">!in_WillStop</mca:CSharpValue>
        </While.Condition>
        <Sequence DisplayName="Seq. Get Status" sap2010:WorkflowViewState.IdRef="Sequence_10">
          <p1:Receive x:Name="__ReferenceID7" DisplayName="GetStateReceive" sap2010:WorkflowViewState.IdRef="Receive_7" OperationName="GetNextExecuteTime" ServiceContractName="p:IService">
            <p1:Receive.CorrelatesOn>
              <p1:XPathMessageQuery x:Key="key1">
                <p1:XPathMessageQuery.Namespaces>
                  <ssx:XPathMessageContextMarkup>
                    <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                  </ssx:XPathMessageContextMarkup>
                </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
            </p1:Receive.CorrelatesOn>
            <p1:Receive.CorrelatesWith>
              <InArgument x:TypeArguments="p1:CorrelationHandle">
                <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
              </InArgument>
            </p1:Receive.CorrelatesWith>
            <p1:Receive.CorrelationInitializers>
              <p1:QueryCorrelationInitializer>
                <p1:QueryCorrelationInitializer.CorrelationHandle>
                  <InArgument x:TypeArguments="p1:CorrelationHandle">
                    <mca:CSharpValue x:TypeArguments="p1:CorrelationHandle">myCorrelation</mca:CSharpValue>
                  </InArgument>
                </p1:QueryCorrelationInitializer.CorrelationHandle>
                <p1:XPathMessageQuery x:Key="key1">
                  <p1:XPathMessageQuery.Namespaces>
                    <ssx:XPathMessageContextMarkup>
                      <x:String x:Key="xgSc">http://tempuri.org/</x:String>
                    </ssx:XPathMessageContextMarkup>
                  </p1:XPathMessageQuery.Namespaces>sm:body()/xgSc:Stop/xgSc:UniqueId</p1:XPathMessageQuery>
              </p1:QueryCorrelationInitializer>
            </p1:Receive.CorrelationInitializers>
            <p1:ReceiveParametersContent>
              <OutArgument x:TypeArguments="s:Guid" x:Key="UniqueId">
                <mca:CSharpReference x:TypeArguments="s:Guid">inout_UniqueId</mca:CSharpReference>
              </OutArgument>
            </p1:ReceiveParametersContent>
          </p1:Receive>
          <p1:SendReply Request="{x:Reference __ReferenceID7}" DisplayName="SendReplyToReceive" sap2010:WorkflowViewState.IdRef="SendReply_7">
            <p1:SendParametersContent>
              <InArgument x:TypeArguments="s:DateTime" x:Key="NextExecuteTime">
                <mca:CSharpValue x:TypeArguments="s:DateTime">m_NextExecute</mca:CSharpValue>
              </InArgument>
            </p1:SendParametersContent>
          </p1:SendReply>
        </Sequence>
      </While>
    </Parallel>
    <sads:DebugSymbol.Symbol>d2ZDOlxNeVByb2plY3RzXFByb2plY3QgLSBDQVRcS1BJUy5HRVJQLlNFUlZJQ0VcS1BJUy5HRVJQLlNFUlZJQ0UuQ29tbWFuZERhZW1vblxDb21tYW5EYWVtb25Db25zb2xlLnhhbWyCAS4D7QQOAgEBNgs2fgIBAkMFVRADAe4HVgVhDgMBzwdiBWYRAwG/B2cFsQEQAwGtBrIBBesEEAIBEUcHUhQDAfIHUwdTjQEDAe8HXgtepAEDAd8HWQtZawMB0AdkCWSDAQMBwAdoB6sBDAMBvgasAQewARMDAa4GswEHqgIPAwH5A6sCB90CDwMBpgPeAgeWAw8DAdQClwMHzwMPAwGCAtADB4gEDwMBsAGJBAe5BA8CAWG6BAfqBA8CARJMEUxxAwHzB2sNa2QDAb8Gbwt6FAMBoAd9C6kBEAMBzgauAQuuAXoDAa8GtwEJqQIUAwGJBLUBC7UBVgMB+gOvAgncAhQDAbYDrQILrQJWAwGnA+ICCZUDFAMB5ALgAgvgAlYDAdUCmwMJzgMUAwGSApkDC5kDVgMBgwLUAwmHBBQDAcAB0gML0gNWAwGxAY0ECbgEFAIBcYsEC4sEVgIBYr4ECekEFAIBIrwEC7wEVgIBE3cRd24DAbAHchFyYAMBoQeAARGAAWcDAc8GhAEPmwEaAwHvBp4BD6cBGAMB3ga4AQu4AVIDAasGuQELvQEXAwGbBr4BC8IBFwMBiwbDAQuGAhADAegEhwILkgIUAwHJBJMCC54CFAMBqgSfAgujAhcDAZoEpAILqAITAwGKBLMCC9gCGAMBuAPZAgvbAhoDAbcD4wILhQMYAwH4AoYDC48DFAMB5wKQAwuUAxoDAeUCnAMLvgMYAwGmAr8DC8gDFAMBlQLJAwvNAxoDAZMC1QML9wMYAwHUAfgDC4EEFAMBwwGCBAuGBBoDAcEBjgQLsAQYAwGCAbEEC7cEGgIBcr8EC+EEGAIBM+IEC+gEGgIBI4UBEZABGgMBgQeRARGaARoDAfAGpQE5pQE9AwHuBqEBFaEBZAMB3wa4AUm4AU8DAawGuwEPuwGIAQMBnAbAAQ/AAXUDAYwGxgERxgFdAwHpBMoBD4QCGQMB+ASPAhGPArYBAwHZBIoCEYoCaAMBygSbAhGbAnIDAboElgIRlgJmAwGrBKECD6ECkQEDAZsEpgIPpgJeAwGLBL4CEb4CaAMB6QPVAhHVAnUDAdkD0gIR0gJjAwHJA8UCFcUCbAMBuQPuAhHuAmgDAZcDggMRggNjAwGIA/UCFfUCbAMB+QKNAzeNAzsDAfcCiQMRiQNjAwHoApIDSpIDbgMB5gKnAxGnA2gDAcUCuwMRuwNjAwG2Aq4DFa4DbAMBpwLGAzfGAzsDAaUCwgMRwgNkAwGWAssDSssDaQMBlALgAxHgA2gDAfMB9AMR9ANjAwHkAecDFecDbAMB1QH/Azf/AzsDAdMB+wMR+wNjAwHEAYQESoQEbgMBwgGZBBGZBGgDAaEBrQQRrQRjAwGSAaAEFaAEbAMBgwG0BBG0BHECAXPKBBHKBGgCAVLeBBHeBGMCAUPRBBXRBGwCATTlBBHlBF4CASSNAReNAckBAwGRB4gBF4gBZgMBggeYAT2YAUEDAYAHlAEXlAFsAwHxBs0BFc0BfQMB/AXUAROCAh4DAfkE2QEV3QEhAwHpBd4BFekBHgMBxAXqARX1AR4DAZ8F9gEVgQIeAwH6BNsBGdsBeQMB6gXmARvmAXsDAdcF4QEb4QFnAwHFBfIBG/IBuQEDAbIF7QEb7QFnAwGgBf4BG/4BqwEDAY0F+QEb+QFnAwH7BA==</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Receive_8" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="SendReply_8" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_12" sap:VirtualizedContainerService.HintSize="3650,348">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_13" sap:VirtualizedContainerService.HintSize="3650,62" />
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="3650,62" />
      <sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="264,288">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_1" sap:VirtualizedContainerService.HintSize="531,440" />
      <sap2010:ViewStateData Id="If_2" sap:VirtualizedContainerService.HintSize="798,592" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="798,62" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="3650,818">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_7" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="WriteLine_3" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="WriteLine_4" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="WriteLine_5" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_6" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_7" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="264,492">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_1" sap:VirtualizedContainerService.HintSize="294,643" />
      <sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="464,795" />
      <sap2010:ViewStateData Id="Assign_8" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="Assign_9" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="WriteLine_6" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="Delay_1" sap:VirtualizedContainerService.HintSize="464,22" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="486,1593">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_1" sap:VirtualizedContainerService.HintSize="512,1755" />
      <sap2010:ViewStateData Id="Receive_2" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="SendReply_2" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="277,348">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_2" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Receive_3" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Assign_10" sap:VirtualizedContainerService.HintSize="255,62" />
      <sap2010:ViewStateData Id="SendReply_3" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="277,450">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_3" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Receive_4" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Assign_11" sap:VirtualizedContainerService.HintSize="255,62" />
      <sap2010:ViewStateData Id="SendReply_4" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_7" sap:VirtualizedContainerService.HintSize="277,450">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_4" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Receive_5" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Assign_12" sap:VirtualizedContainerService.HintSize="255,62" />
      <sap2010:ViewStateData Id="SendReply_5" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_8" sap:VirtualizedContainerService.HintSize="277,450">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_5" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Receive_6" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="SendReply_6" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_9" sap:VirtualizedContainerService.HintSize="277,348">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_6" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Receive_7" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="SendReply_7" sap:VirtualizedContainerService.HintSize="255,92" />
      <sap2010:ViewStateData Id="Sequence_10" sap:VirtualizedContainerService.HintSize="277,348">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_7" sap:VirtualizedContainerService.HintSize="464,1755" />
      <sap2010:ViewStateData Id="Parallel_1" sap:VirtualizedContainerService.HintSize="3650,1801" />
      <sap2010:ViewStateData Id="Sequence_11" sap:VirtualizedContainerService.HintSize="3672,3375">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="KPIS.GERP.SERVICE.CommandDaemon.Workflow1_1" sap:VirtualizedContainerService.HintSize="3712,3455" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>